Fix DEBUG_PREEMPT builds. irq_disabled() macro must not use
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 31 Aug 2005 14:20:56 +0000 (14:20 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 31 Aug 2005 14:20:56 +0000 (14:20 +0000)
smp_processor_id(). Use the underlying function instead.

Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/include/asm-xen/asm-i386/system.h
linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/system.h

index 5d8ab26fa40dc0319c670f46f39cda93f12e6eeb..92af14b39c52c54dea8a85684962702a9f91c0ff 100644 (file)
@@ -561,8 +561,9 @@ do {                                                                        \
 #define local_irq_disable()    __cli()
 #define local_irq_enable()     __sti()
 
+/* Don't use smp_processor_id: this is called in debug versions of that fn. */
 #define irqs_disabled()                        \
-    HYPERVISOR_shared_info->vcpu_data[smp_processor_id()].evtchn_upcall_mask
+    HYPERVISOR_shared_info->vcpu_data[__smp_processor_id()].evtchn_upcall_mask
 
 /*
  * disable hlt during certain critical i/o operations
index b0ad9c2030e912a70d6807568a24f6c78f830ded..3fc3c550c31af67945f0a5fad5f8cfb14ff62c20 100644 (file)
@@ -387,8 +387,9 @@ void cpu_idle_wait(void);
 #define local_irq_disable()    __cli()
 #define local_irq_enable()     __sti()
 
+/* Don't use smp_processor_id: this is called in debug versions of that fn. */
 #define irqs_disabled()                        \
-    HYPERVISOR_shared_info->vcpu_data[smp_processor_id()].evtchn_upcall_mask
+    HYPERVISOR_shared_info->vcpu_data[__smp_processor_id()].evtchn_upcall_mask
 
 /*
  * disable hlt during certain critical i/o operations